# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-ntlm-auth
_pkgname=ntlm-auth
pkgver=1.4.0
pkgrel=1
pkgdesc='Creates NTLM authentication structures.'
url='https://pypi.org/project/ntlm-auth/#files'
arch=('any')
license=('LGPL3')
depends=('python2' 'python2-ordereddict' 'python2-six')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('99c3c03cc4306b8e1ecc498d9368f383e38d1f2715a9bf6354bbfdfe49101a0978ca0464454d72f77fce8fa0a85e184aa33bad4ed5ddda15aff9ed56e0605f80')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

